<%@page pageEncoding="UTF-8" isELIgnored="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@taglib prefix="f" uri="http://www.slim3.org/functions"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>admin regist Edit</title>
<link rel="stylesheet" type="text/css" href="/css/global.css" />
</head>
<body>
Exam Name<br />
${f:h(exam.examName)}<br />


<a href="${f:url("addQuestion")}">AddQuestion</a>
<table>
<tr><th>Questions</th></tr>
<tr>
<c:forEach var="e" items="${questionList}">
<td>${f:br(f:h(e.question))}</td>
<c:set var="editUrl" value="editQuestion?key=${f:key(e.key)}&version=${e.version}"/>
<c:set var="deleteUrl" value="deleteQuestion?key=${f:key(e.key)}&version=${e.version}"/>
<td><a href="${f:url(editUrl)}">Edit</a></td>
<td><a href="${f:url(deleteUrl)}" onclick="return confirm('delete OK?')">Delete</a></td>
</tr>
</c:forEach>
</table>
<input type="button" value="back to regist" onclick=window.location.href='.'>
</body>
</html>
